import {ApiProperty, PartialType} from '@nestjs/swagger';
import { SaveBlogDto } from './save-blog.dto';
import {IsNumber} from "class-validator";

export class UpdateBlogDto extends PartialType(SaveBlogDto) {
	@ApiProperty({ description: '博客id' })
	@IsNumber({},{
		message:'id必须为数字'
	})
	id: number
}
